package com.example.dormitory_system.service;

import com.example.dormitory_system.domain.dto.tsysuser.AnnouncementAddDTO;
import com.example.dormitory_system.domain.enetiy.Announcement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dormitory_system.domain.vo.student.AnnouncementDetailVO;
import com.example.dormitory_system.domain.vo.student.StuAnnouncementListVO;
import com.example.dormitory_system.domain.vo.tsysuser.AnnouncementListVO;

import java.util.List;

/**
* @author keenan
* @description 针对表【tb_announcement(公告表)】的数据库操作Service
* @createDate 2025-03-26 15:26:50
*/
public interface AnnouncementService extends IService<Announcement> {

    List<AnnouncementListVO> sysListAnnouncement(Long userId,String title, Integer status, Integer pageNum, Integer pageSize);

    int addAnnouncement(AnnouncementAddDTO announcementAddDTO);

    int updateAnnouncement(Long announcementId, Integer status, Long userId);

    List<StuAnnouncementListVO> listAnnouncement(Integer pageNum, Integer pageSize, String title);

    AnnouncementDetailVO getAnnouncementDetail(Long announcementId);
}